import { createApp } from 'vue';

// import globalComponents from '@/components';
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
import '@/assets/fonts/iconfont.css';
import AV from 'leancloud-storage';
// src/main.js

import '@/assets/js/iconfont';
import * as ElementPlusIconsVue from '@element-plus/icons-vue';
import store from './store';
import router from './router';
// import store from './store';
// import directive from './directive';
// import './mock';
import App from './App.vue';
// src/main.js
AV.init({
  appId: 'YnNVGaGkFoy0suhtYKYMQQu5-gzGzoHsz',
  appKey: 'sbrwp5mFTYKA2XzC4lUFMY8L',
  serverURL: 'https://ynnvgagk.lc-cn-n1-shared.com',
});
const { Query } = AV;
// import '@/assets/style/global.less';
// import '@/api/interceptor';
// Vuetify
const app = createApp(App);
// eslint-disable-next-line no-restricted-syntax
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}
app.use(store);
app.use(router);
app.use(ElementPlus);
app.config.globalProperties.$Query = Query;

// app.use(store);
// app.use(i18n);
// app.use(globalComponents);
// app.use(directive);
app.mount('#app');
